package team.zero.lemon.module.sys.dao;

import team.zero.lemon.module.sys.entity.User;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import team.zero.lemon.common.security.session.model.Function;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by bolin on 2015/5/18.
 */
@MyBatisDao
public interface IFunctionDao extends ICrudDao<Function> {
    /**
     * 获取用户权限菜单
     *
     * @param userId
     * @return
     */
    List<Function> findByUserId(@Param("userId") int userId);

}
